package com.xyd.bean;

import java.util.Date;

public class User {
    private Integer uid;

    private String uname;

    private String upass;

    private String sex;

    private Date birthday;

    private String identitycode;

    private String email;

    private String phone;

    private String address;

    public User(String uname, String upass, String sex, Date birthday, String identitycode, String email, String phone, String address) {
        this.uname = uname;
        this.upass = upass;
        this.sex = sex;
        this.birthday = birthday;
        this.identitycode = identitycode;
        this.email = email;
        this.phone = phone;
        this.address = address;
    }

    public User(Integer uid, String uname, String upass, String sex, Date birthday, String identitycode, String email, String phone, String address) {
        this.uid = uid;
        this.uname = uname;
        this.upass = upass;
        this.sex = sex;
        this.birthday = birthday;
        this.identitycode = identitycode;
        this.email = email;
        this.phone = phone;
        this.address = address;
    }

    public User() {
    }

    public User(String uname) {
        this.uname = uname;
    }

    public User(String uname, String upass) {
        this.uname = uname;
        this.upass = upass;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname == null ? null : uname.trim();
    }

    public String getUpass() {
        return upass;
    }

    public void setUpass(String upass) {
        this.upass = upass == null ? null : upass.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getIdentitycode() {
        return identitycode;
    }

    public void setIdentitycode(String identitycode) {
        this.identitycode = identitycode == null ? null : identitycode.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }
}